package com.simple.common;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *     <br/>客户端相应结果
 * </p>
 */
@Data
public class PageResult {

    private Long total;
    private Integer pageNum;
    private List<?> pageList;

    public PageResult() {
        this.total = 0L;
        this.pageNum = 0;
        this.pageList = new ArrayList<>();
    }

    public PageResult(Long total, Integer pageNum, List<?> pageList) {
        this.total = total;
        this.pageNum = pageNum;
        this.pageList = pageList;
    }
}
